#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
#include"list.h"

template<class T>
void Print(_list::list<T> l)
{
	typename _list::list<T>::iterator it = l.begin();
	while (it != l.end())
	{
		cout << *it << endl;
		it++;
	}
}

int main()
{
	_list::list<int> l;
	l.push_back(1);
	l.push_back(2);
	l.push_back(3);
	l.push_back(4);
	l.push_back(5);
	l.push_back(6);
	l.push_back(7);
	l.push_back(8);
	l.push_back(9);
	l.push_back(10);
	Print(l);
	return 0;
}